<script setup lang='ts'>
import SealMessage from '@/components/message/message.vue'
import { render } from 'vue';
import { h } from 'vue';


// 动态创建组件   h()  render()

// <SealMessage type="success">登录成功</SealMessage>
const vNode = h(SealMessage,{type:'success'},'登录成功')
render(vNode,document.body)

// 用法： 
// this.$message.success()   
// this.$message({type:success,text:成功})
</script>

<template>
  <!-- <SealMessage>登录成功</SealMessage> -->
</template>

<style scoped>

</style>
